package work.parabola.keyboardswitch.dao;

import org.apache.ibatis.annotations.Param;
import work.parabola.keyboardswitch.pojo.repository.SwitchTypeDo;

import java.util.List;

public interface SwitchTypeDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SwitchTypeDo record);

    int insertSelective(SwitchTypeDo record);

    SwitchTypeDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SwitchTypeDo record);

    int updateByPrimaryKey(SwitchTypeDo record);

    List<SwitchTypeDo> selectByParams(@Param("searchWord") String searchWord);

    List<Integer> selectByParentId(Integer parentId);

}